package com.service.business.otc.controller.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;
@Getter
@Setter
@ToString
public class OrderCreateReq {

    private Integer memberId;

    // 最低买入(售出)数量
    @NotNull(message = "args_empty_otc_buy_num")
    @Positive(message = "args_empty_otc_positive_buy_num")
    private BigDecimal otcMinBuyNum;

    @NotNull(message = "args_empty_otc_buy_num")
    @Positive(message = "args_empty_otc_positive_buy_num")
    private BigDecimal otcNum;

    // 售出(买入)单价
    @NotNull(message = "args_empty_otc_price")
    @Positive(message = "args_empty_otc_positive_price")
    private BigDecimal otcPrice;

    @NotBlank(message = "args_empty_safety_pwd")
    private String safetyPwd;

}
